import request from '@/utils/request'
import { exportFileByUrl, GetParams } from "@/utils/common.js";
 
// 投资人管理
// 投标信息数据库
export function getList(params) {
  return request({
    url: 'hermes/blackWhite/page',
    method: 'get',
    params
  }) 
}
export function getBusinessTypes() {
  return request({
    url: 'hermes/blackWhite/businessTypes',
    method: 'get',
    
  }) 
}
export function getselectCustomer(params) {
  return request({
    url: 'hermes/blackWhite/selectCustomer',
    method: 'get',
    params
  }) 
}
export function getselectByCustomer(params) {
  return request({
    url: 'hermes/blackWhite/selectByCustomer',
    method: 'get',
    params
  }) 
}
export function insertBatch(data) {
  return request({
    url: 'hermes/blackWhite/insertBatch',
    method: 'post',
    data
  }) 
}
export function getblackWhite( params) {
  const url = `${
    process.env.VUE_APP_API_URL
  }hermes/blackWhite/export${GetParams(params)}`;
  exportFileByUrl(url, params.name + ".xls");
}
export function getBidinfoDataDataDownloadUrl( params) {
  const url = `${
    process.env.VUE_APP_API_URL
  }/budms/investor/bidinfo${GetParams(params)}`;
  exportFileByUrl(url, params.name + ".xls");
}
